package cn.tedu.bonfire.front.account.dao.persist.repository.impl;

import cn.tedu.bonfire.front.account.dao.persist.mapper.UserRegisterMapper;
import cn.tedu.bonfire.front.account.dao.persist.mapper.UserRoleMapper;
import cn.tedu.bonfire.front.account.dao.persist.repository.IUserRegisterRepository;
import cn.tedu.bonfire.front.account.pojo.entity.User;
import cn.tedu.bonfire.front.account.pojo.entity.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserRegisterRepositoryImpl implements IUserRegisterRepository {

    @Autowired
    UserRegisterMapper userRegisterMapper;

    @Autowired
    UserRoleMapper userRoleMapper;


    @Override
    public int insert(User user) {
        return userRegisterMapper.insert(user);
    }

    @Override
    public int insertUserRole(UserRole userRole) {
        return userRoleMapper.insert(userRole);
    }
}
